home *** CD-ROM | disk | FTP | other *** search
- Path: druid.borland.com!usenet
- From: pete@borland.com (Pete Becker)
- Newsgroups: comp.lang.c++
- Subject: Re: Borlands Container Classes
- Date: 26 Mar 1996 16:30:43 GMT
- Organization: Borland International
- Message-ID: <4j963j$74n@druid.borland.com>
- References: <4j6q5c$jl3@mongol.sasknet.sk.ca>
- NNTP-Posting-Host: pbecker.borland.com
- Mime-Version: 1.0
- Content-Type: Text/Plain; charset=ISO-8859-1
- X-Newsreader: WinVN 0.99.5
-
- In article <4j6q5c$jl3@mongol.sasknet.sk.ca>, psc1@mailhost.sasknet.sk.ca
- says...
- >
- >This is probably an easy question but... I want to put one of my own
- >classes in a TIArrayAsVector. Everything goes well until link time when
- >it gives me the error "Illegal structure operation in function
- >TMICVectorImp<MyClass,TStandardAllocator>::Find(const MyClass *) cont".
- >The code it dies on is:
- >
- > if( Data[loc] &&
- > *STATIC_CAST(T *,STATIC_CAST(void *,Data[loc])) == *t )
- > return loc;
- >
- >I'm not sure whats going on, I am passing a pointer as this is an
- >indirect vector array.
- >
- >Anybody please, the documentation for the type cast *STATIC_CAST is
- >strange.
-
- The "structure operation" that the compiler is referring to is the == operation
- on type T. MyClass must have an operator ==.
-
-